﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Sisocana.Core.Models.NoticiaAsociadaModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Site Configuration
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContent" runat="server">
    <%--para el menu para el menu--%>
    	
    <link href="../../Content/tabbedContent.css" rel="stylesheet" type="text/css" />
	<script src="../../Scripts/tabbedContent.js" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery-ui-1.8.11.js") %>" type="text/javascript"></script>
    <link href="<%: Url.Content("~/Content/themes/base/jquery.ui.all.css") %>" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("p a, input:submit,input:file ").button();
        });
    </script>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Site Configuration</h2>
 <fieldset>
    <% Html.RenderPartial("MenuEditSite", ViewData["idSitio"]); %>
<p>
    <%: Html.ActionLink("Create New", "createSources", new { id = ViewData["idSitio"] })%>
</p>
<table>
    <tr>
        <th>
            RSS Feed Name
        </th>
        <th>
            Number of items
        </th>
        <th>
            Search Tag
        </th>
        <th>
            ¿Show summary?
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.NoticiaNombre) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.cantVisualizar) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.tagBusqueda) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.showDesc) %>
        </td>
        <td>
            <%: Html.ActionLink("Edit", "EditSource", new { id=item.id }) %> |
            <%: Html.ActionLink("Delete", "DeleteSource", new { id=item.id }) %> |
        </td>
    </tr>
<% } %>

</table>
</fieldset>
</asp:Content>
